﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Payroll.BusinessLogic.Directory;
using Payroll.BusinessLogic.Infrastructure;

namespace Payroll.BusinessLogic.EmployeeManagement
{
    public partial class Employee : BaseEntity
    {
        #region Properties
        public int EmployeeId { get; set; }
        public string Name { get; set; }
        public string Mobile { get; set; }
        public string EmailAddress { get; set; }
        public string Phone { get; set; }
        public string Username { get; set; }
        public string PasswordHash { get; set; }
        public bool Active { get; set; }
        public bool Deleted { get; set; }
        public int CreatedByID { get; set; }
        public int UpdateByID { get; set; }
        public DateTime CreatedOn { get; set; }
        public DateTime UpdatedOn { get; set; }
        public bool IsAdmin { get; set; }
        public int LanguageId { get; set; }
        public string TimeZoneId { get; set; }
        public string SaltKey { get; set; }
        public bool IsGuest { get; set; }
        #endregion
        #region
        #endregion
        #region Employee Properties
        /// <summary>
        /// Gets the language
        /// </summary>
        public Language Language
        {
            get
            {
                return IoC.Resolve<ILanguageService>().GetLanguageById(this.LanguageId);
            }
        }
        #endregion
    }
}
